package cn.gson.oasys.services.attendce.impl;

import cn.gson.oasys.model.dao.attendcedao.AttendceDao;
import cn.gson.oasys.model.entity.attendce.Attends;
import cn.gson.oasys.services.attendce.AttendceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class AttendceServiceImpl implements AttendceService {

    @Autowired
    private AttendceDao attendceDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //最近出勤记录
    @Override
    public Attends findlastest(String nowdate, Long userId) {
        return attendceDao.findlastest(nowdate, userId);
    }
}
